import {observable, action} from 'mobx'
import { getTopList } from "@/api/index";

class Rank {
    namespace="rank"
    @observable guan=[];
    @observable quan=[];

    @action.bound
    async getTopList(){
        const result =await getTopList();
        this.guan=result.data.data.list.splice(0,4);
        this.quan=result.data.data.list.splice(0);
        console.log( this.quan);
    }
 
}
export default new Rank();